﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace HtmlHelper.Helper
{
    public static class MyHelper
    {
        public static MvcHtmlString StHelper(this System.Web.Mvc.HtmlHelper html, string input)
        {
            //return new MvcHtmlString(System.Text.RegularExpressions.Regex.Replace(input,"<.*?>",string.Empty)); 
            string result = string.Format("<p>{0}</p>",html.Encode(input) );
            return new MvcHtmlString(result);
        }
    }
}